#!/usr/bin/env python3
import re

pt = re.compile('.*feng.*:x:\d{4}:.*bash$')

f = open('passwd')
for i in f:
    if pt.match(i):
        print(i, end='')

f.close()
